<?


FUNCTION kill_unit($unit_tmp,$ter_tmp){

$unit_tmp3=EXPLODE("-",$ter_tmp);
       $unit_tmp=trim($unit_tmp);

        $i=0;
        FOREACH($unit_tmp3 as $unit_tmp2){
             $unit_tmp2=trim($unit_tmp2);
            IF ($unit_tmp2!=$unit_tmp){
               $unit_def[$i]=$unit_tmp2;

               $i++;
             }
        }
         //Remmettre les unit dans terrain[3]
         if ($i!=0){
             $ter_tmp=implode("-",$unit_def);
         }
         ELSE{

            $ter_tmp="0";
        }


        RETURN $ter_tmp;
}//Fin de la fonction kill_unit.




?>
